package cn.itsource.thisdemo;

/**
 *	构造方法调用流程测试：
 *
 *	有继承关系的类加载流程：
 *
 *		
 */
public class ThisTest {
	int a;
	String str;
	
	public ThisTest(String str) {
		this.str = str;
		System.out.println("String str有参构造...");
	}
	public ThisTest(int a) {
		this.a = a;
		System.out.println("int a有参构造...");
	}
	public ThisTest(int a, String str) {
		this(a);
		this.str = str;
		System.out.println("int a, String str有参构造...");
	}
	
	public ThisTest() {
		this(11,"波多");
		System.out.println("无参构造...");
	}
	
	public static void main(String[] args) {
		//调用无参构造执行流程：
		ThisTest thisTest = new ThisTest();
		
	}

}
